package com.hwua.service;

import com.hwua.entity.Comment;

import java.sql.SQLException;
import java.util.List;

public interface ICommentService {
    /**
     * 输出所有留言板信息
     * @return
     * @throws Exception
     */
    public List<Comment> queryForLimit(Integer start,Integer pageSize) throws Exception;

    /**
     * 总数
     * @return
     * @throws Exception
     */
    public Long queryCount() throws Exception;

    /**
     * 添加新留言
     * @param comment
     * @return
     * @throws Exception
     */
    public boolean insertComm(Comment comment) throws Exception;

    /**
     * 查询所有
     * @return
     * @throws Exception
     */
    public List<Comment> queryA() throws Exception;
}
